package com.marvels.approve.process.service;

import java.util.List;

import com.marvels.approve.process.dto.LoanApplyCaseDTO;
import com.marvels.approve.process.dto.LoanApplyCaseLogDTO;
import com.marvels.common.exception.MarvelsBusinessException;

/**流程日志服务
 * @author 何杰
 * 2018年5月16日
 */
public interface ILoanApplyCaseLogService {
	/**完成节点日志服务
	 * @author 何杰
	 * 2018年5月16日
	 * @param loanApplyCase
	 * @throws MarvelsBusinessException
	 */
	public void commCompleteCase(LoanApplyCaseDTO loanApplyCase,String caseResult) throws MarvelsBusinessException;
	
	/**结案处理
	 * @author 何杰
	 * 2018年5月16日
	 * @param loanApplyCase
	 * @throws MarvelsBusinessException
	 */
	public void endCase(LoanApplyCaseDTO loanApplyCase) throws MarvelsBusinessException;
	
	/**
	 * 
	 * 查询流程记录
	 * @param loanId
	 * @return
	 * @throws MarvelsBusinessException
	 */
	
	public  List<LoanApplyCaseLogDTO>  selectLoanApplyCaseLog(String loanId)throws MarvelsBusinessException;
	
	
	/**查询最近一次节点出现的处理人
	 * @param loanId
	 * @param nodeCode
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public  LoanApplyCaseLogDTO getHistoryAssigneeOfNodeCode(String loanId,String nodeCode )throws MarvelsBusinessException;

}
